<?php
/**
 * Created by PhpStorm.
 * User: sh01
 * Date: 2018/1/8
 * Time: 16:35
 */
require 'lib/corp-weixin/WXBizMsgCrypt.php';
$crypt = new WXBizMsgCrypt('mKzEoVtmcmedCpWEiud5I4hcUgRj','45g2GK5q8ErBAIhXSQICc5yAIuvNUa46gR5nHjIItJW','ww5ff2139322adf043');

$echostr = urldecode($_GET["echostr"]);
$msg_signature = urldecode($_GET["msg_signature"]);
$timestamp = urldecode($_GET["timestamp"]);
$nonce = urldecode($_GET["nonce"]);
$replyEchoStr = '';
$res = $crypt->VerifyURL($msg_signature,$timestamp,$nonce,$echostr,$replyEchoStr);
//file_put_contents('test wxdebug.txt','echostr  '.$echostr.' |msg_sing '.$msg_signature.' |nonce '.$nonce.' |reply '.$replyEchoStr.' | code'.$res);

echo $replyEchoStr;